/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package co.gov.das.j2medemo;

import com.eightmotions.map.MapDisplay;
import com.eightmotions.util.UtilMidp;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class HelloMap extends MIDlet {
    Display m_display;
    public void startApp() {
        // DO NOT FORGET TO INITIALISE UtilMidp! contains some static function
        // used by MapDisplay....
        //
        UtilMidp.checkMIDP(this);  //Initialise the utility library...
        MapDisplay m_map = new MapDisplay();
        m_map.setModeProxy(false);
        m_map.gotoLonLat(-74.4f, 4.3f);
        m_map.setZoom(7);
        Display.getDisplay(this).setCurrent(m_map.getCanvas());

    }

    public void pauseApp() {    }

    public void destroyApp(boolean unconditional) {    }
}
